﻿#include "Component.h"
#include "GameObject.h"

namespace DYEngine
{
	Component::Component() : mGameObject(nullptr), mIsDestroy(false)
	{

	}

	Component::~Component()
	{
		mGameObject = nullptr;
	}

	Transform* Component::GetTransform()
	{
		if (mGameObject != nullptr)
		{
			return mGameObject->GetTransform();
		}

		return nullptr;
	}
}
